<?php
// *** Tangra (Application Framework and Tools for PHP)
// $Id: user.class.php 1565 2009-01-13 11:06:01Z ogrebg $
//


class User extends Tangra_Class {
	private $id;
	private $username;
	private $password;
	private $disabled = 0;


	public function set_id($id) {
		tangra_if_not_int_throw_e($id);
		$this->id = $id;
	}


	public final function get_id() {
		return $this->id;
	}


	public function set_username($username) {
		$this->username = $username;
	}


	public function set_password($password) {
		$this->password = $password;
	}


	public final function get_username() {
		return $this->username;
	}


	public final function get_password() {
		return $this->password;
	}


	public function set_disabled($disabled) {
		$this->disabled = $disabled ? 1 : 0;
	}


	public function get_disabled() {
		return $this->disabled ? 1 : 0;
	}


}

